<?php

use Phalcon\Mvc\Model;

class Blogs extends Model{
    protected $id;
    protected $user;
    protected $blog_type;
    protected $create_date;
    protected $login_date;

    public function initialize() {
        $this->belongsTo("user", "Users", "id");
        $this->belongsTo("blog_type", "BlogTypes", "id");
    }

    public function getSource() {
		return "lb_blog";
	}

    public function getId() {
        return $this->id;
    }

    public function getUser() {
        return $this->user;
    }

    public function setUser($user) {
        $this->user = $user;
    }

    public function getBlogType() {
        return $this->blog_type;
    }

    public function setBlogType($blog_type) {
        $this->blog_type = $blog_type;
    }

    public function getCreateDate() {
        return $this->create_date;
    }

    public function setCreateDate($create_date) {
        $this->create_date = $create_date;
    }

    public function getLoginDate() {
        return $this->$login_date;
    }

    public function setLoginDate($login_date) {
        $this->login_date = $login_date;
    }
}
